import request from '@/utils/request'

// 车辆申请分页
export function getList(params) {
  return request({
    url: '/teamWithdraw/list',
    method: 'POST',
    params
  })
}

// 车辆申请添加
export function addWithdraw(data) {
  return request({
    url: '/teamWithdraw/add',
    method: 'POST',
    data
  })
}

// 查询单条
export function selectWithdraw(params) {
  return request({
    url: '/teamWithdraw/load',
    method: 'POST',
    params
  })
}

// 删除车辆申请数据
export function deleteWithdraw(data) {
  return request({
    url: '/teamWithdraw/delete',
    method: 'post',
    data
  })
}

// 修改车辆申请数据
export function updateWithdraw(data) {
  return request({
    url: '/teamWithdraw/update',
    method: 'post',
    data
  })
}

// 查询团队名称
export function selectTeam(params) {
  return request({
    url: 'administrative/teams/getTeamIdAndNameListByName',
    method: 'POST',
    params
  })
}

